<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -->
		<?php
		// $type peut être égal à 1 (nouvel étudiant), 2 (association) ou 3 (...)
		if(isset($_GET['type']))
			$type = $_GET['type'];
		if(isset($_GET['retour']))
			$retour = $_GET['retour'];
		else
			$retour = false;
		?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<title>ATUGE Bordeaux</title>
	<?php
		if($retour)
			require_once('includes.inc');
		else
		{
		?>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Style-Type" content="text/css" />
		<meta http-equiv="Content-Language" content="fr" />
		<meta name="keywords" lang="fr" content="association, bordeaux, tunisiens, atuge, etudiants, tunisie, france, enseirb, matmeca">
		<?php
		}
	?>
		<script src="../js/form_validator/jquery.validationEngine-fr.js" type="text/javascript"></script>  
		<script src="../js/form_validator/jquery.validationEngine.js" type="text/javascript"></script>
		<link rel="stylesheet" href="../css/form_validator/validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="utf-8" />
		<link rel="stylesheet" href="../css/form_validator/template.css" type="text/css" media="screen" title="no title" charset="utf-8" />
	</head>
	<body>
<?php include_once("analyticstracking.php") ?>
			<?php
	if($retour)
	{
	?>
		<div id="main">
			<?php
				require_once('top.inc');
			?>
			<div id="contenu">
			<?php
				require_once('left.inc');
			?>
				<div class="block_droit">
	<?php
	}
	?>
		<div id="devis">
			<form id="formID" class="formular" method="post" action="traitement_formulaire_contact.php">
				<div class="centrer2">
					<fieldset>
						<legend>Vos coordonnées</legend>
						<p><label for="nom">Nom :</label><input class="validate[required,custom[onlyLetter],length[0,100]] text-input" type="text" id="nom" name="nom"/></p>
						<p><label for="prenom">Prénom :</label><input class="validate[required,custom[onlyLetter],length[0,100]] text-input" type="text" id="prenom" name="prenom"/></p>
					<?php
						if($type == 1)
						{
						?>
						<p><label for="date_naissance">Date de naissance : (format JJ-MM-AAAA)</label><input class="validate[required,custom[date]] text-input" type="text" name="date_naissance" id="date_naissance"/></p>
					<?php
						}
					?>
						<p><label for="fixe">Téléphone :</label><input class="validate[required,custom[telephone]] text-input" type="text" id="fixe" name="fixe"/></p>
						<p><label for="email">Email :</label><input class="validate[required,custom[email]] text-input" type="text" id="email" name="email"/></p>
					<?php
						if($type == 1)
						{
						?>
							<p><label for="ine">N° INE :</label><input class="validate[required] text-input" type="text" id="ine" name="ine"/></p>
							<p><label for="date_debut">Date d'arrivée à Bordeaux : (format JJ-MM-AAAA)</label><input class="validate[required,custom[date]] text-input" type="text" name="date_debut"  id="date_debut"/></p>
						<?php
						}
						if($type == 2)
						{
						?>
							<p><label for="nom_assoc">Nom de l'association :</label><input class="validate[required] text-input" type="text" id="nom_assoc" name="nom_assoc"/></p>
						<?php
						}
					?>
					</fieldset>
					<?php
						if($type == 1)
						{
					?>
					<fieldset>
						<legend>Liste de vos voeux Crous</legend>
						<p><label for="voeux1">Voeux 1 :</label><input class="validate[required] text-input" type="text" id="voeu1" name="voeux1"/></p>
						<p><label for="voeux2">Voeux 2 :</label><input class="validate[required] text-input" type="text" id="voeux2" name="voeux2"/></p>
						<p><label for="voeux3">Voeux 3 :</label><input class="validate[required] text-input" type="text" id="voeux3" name="voeux3"/></p>
						<p><label for="voeux4">Voeux 4 :</label><input class="validate[required] text-input" type="text" id="voeux4" name="voeux4"/></p>
					</fieldset>
					<?php
						}
					?>
					<fieldset>
						<legend>Votre message</legend>
						<p><textarea class="validate[required,length[0,400]] text-input" cols="50" rows="9" name="devis" id="devis"></textarea></p>
					</fieldset>
				</div>
				<div style="text-align:center;">
					<input name="envoi" class="submit" type="submit" value=""/>
				</div>
				<hr/>
				<input type="hidden" name="type" value="<?php echo $type; ?>"/>
			</form>
		</div>
	<?php
	if($retour)
	{
	?>
				</div>
				<br class="clear" />
			</div>
			<?php
				require_once('foot.inc');
			?>
		</div>
	<?php
	}
	?>
	</body>
</html>